﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example104.aspx.cs" Inherits="Chapter04.Example104" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>示例104: 使用 Redirect 方法实现页面跳转并传递参数、链接文字颜色设置</title>
    <link href="Content/bootstrap.min.css" rel="stylesheet" />
    <style>
        form > div {
            width: 400px;
        }

            form > div > p {
                text-align: right;
            }

                form > div > p > span {
                    display: inline-block;
                    width: 60px;
                }
    </style>
</head>
<body>
    <form runat="server">
        <div>
            <p>
                <asp:Label Text="用户名:" runat="server" />
                <asp:TextBox ID="usernameTextBox" runat="server"></asp:TextBox>
                <asp:Label Text="admin" runat="server" />
            </p>
            <p>
                <asp:Label Text="密码:" runat="server" />
                <asp:TextBox ID="passwordTextBox" runat="server"></asp:TextBox>
                <asp:Label Text="123456" runat="server" />
            </p>
            <p>
                <asp:Button ID="login" runat="server" Text="登录" OnClick="login_Click" />
                <input type="reset" name="rest" value="重置" id="reset" />
            </p>
        </div>
        <div>链接文字颜色设置</div>
        <div>
            <asp:HyperLink NavigateUrl="Default.aspx" runat="server">目录</asp:HyperLink>
            <script>
                document.vlinkColor = "#00ccff";
                document.linkColor = "green";
                document.alinkColor = "black";
            </script>
        </div>
    </form>
</body>
</html>
